package Serveur;

import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.nio.channels.SocketChannel;

import org.omg.CORBA.PRIVATE_MEMBER;

public class ReseauInfo {

	/**
	 * @param args
	 */
	private InetAddress ip;
	private int port;
	
	
	
	public InetAddress getIp() {
		return ip;
	}
	public void setIp(InetAddress ip) {
		this.ip = ip;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	
	public ReseauInfo(InetAddress ip, int port) {

		this.ip = ip;
		this.port = port;
	}
	@Override
	public String toString(){
		return ip.toString()+":"+port;
	}
	
}
